home *** CD-ROM | disk | FTP | other *** search
- Path: keats.ugrad.cs.ubc.ca!not-for-mail
- From: c2a192@ugrad.cs.ubc.ca (Kazimir Kylheku)
- Newsgroups: comp.lang.c
- Subject: Re: How can I interface with a fax machine through a C Program?
- Date: 4 Mar 1996 10:44:54 -0800
- Organization: Computer Science, University of B.C., Vancouver, B.C., Canada
- Message-ID: <4hfdn6INN2mn@keats.ugrad.cs.ubc.ca>
- References: <4hfbdt$fkr@news.internetmci.com>
- NNTP-Posting-Host: keats.ugrad.cs.ubc.ca
-
- In article <4hfbdt$fkr@news.internetmci.com>,
- Ramakrishna Chamarthy <ram_chamarthy@mcimail.com> wrote:
- >Hello Everyone,
- >
- >I would appreciate if some one could please answer this question as I
- >am totally at a loss to think of a solution:
- >
- >I have a need to interface with a fax machine through a C program
- >to send a fax (stored as a file on disk). Are there any fax machines
- >out there which provide such an interface through a C program?
-
- This not a C question.
-
- What you are looking to do can probably be handled by a bunch of filters. Write
- your C program to generate plain text on its standard output via the standard
- I/O library, then pipe its output to a postscript formatter, and send the
- result via Hylafax software. Alternately, your C program can output code for
- TeX, troff or some other formatter.
-
- yourprog | psnup | sendfax -d <destination_phone>
-
- The psnup program is a commonly available perl script which can turns ascii
- files into PostScript, (with more than one logical page per physical
- page, if you want). Sendfax is the client program which submits a fax job to
- the Hylafax server.
-
- You could do this in five minutes, or you could spend weeks or months
- duplicating the efforts that went into portions of the fax software.
- --
-
-